export interface appStore {
	app: {
		site_name: string;
		site_logo: string;
	};
	allUser: number;
	todayUser: number;
	toDayLogin: number;
	weekRegUsers: any;
	weekLoginUsers: any;
	threeDayUser: number;
	sevenDayUser: number;
	applicationUsers: any;
	allResource: number;
	todayResource: number;
	locale: any;
}

// 用户信息
export interface UserInfoState {
	_id: string;
	avatar: string;
	mobile: string;
	email: string;
	nickname: string;
	username: string;
	gender: number;
	permission: string[];
	role: string[];
	tokenExpired: number;
}
// 主题配置
export interface ThemeInfoState {
	websiteTitle: string;
	isCollapse: boolean;
	isOpenSelectBgColor: boolean;
	popupMenuOpened: boolean;
	isFixedLogo: boolean;
	isShowBreadcrumb: boolean;
	showLeftMenu: boolean;
	isUniqueOpened: boolean;
	isCollapseTransition: boolean;
	isShowBreadcrumbIcon: boolean;
	isShowTagsViewIcon: boolean;
	themeColor: string;
	menuBgColor: string;
	menuInlineBgColor: string;
	menuHighlightBgColor: string;
	menuHighlightColor: string;
	dxLayerHeaderBgColor: string;
	dxLayerHeaderColor: string;
	dxLayerHeaderHoverColor: string;
	isCacheConfig: boolean;
	cacheKeys: string[];
}

export interface RouterInfo {
	_id: string;
	url: string;
	create_date: number;
	icon: string;
	enable: boolean;
	is_link: boolean;
	children: [];
	menu_id: string;
	name: string;
	parent_id: string;
	permission: [];
	sort: number;
}

export interface RouterState {
	currentActiveRoute: string;
	routerList: RouterInfo[];
	tagRouteList: RouterInfo[];
	menuList: any[];
	breadcrumbList: any[];
	homePage: string;
}
